<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    form{
      margin: 10px;
    }
  </style>
  <link rel="stylesheet" href="/public/lib/bootstrap/dist/css/bootstrap.css">
</head>
<body>
  <h1>修改页面</h1>
  <form action="/edit" method="post">
    <fieldset>
      <div class="form-group">
        <label for="disabledTextInput"></label>
        <input type="hidden" value="{{ message.id }}" name="id" id="disabledTextInput" class="form-control" placeholder="id">
      </div>
      <div class="form-group">
        <label for="disabledTextInput">名字</label>
        <input type="text" value="{{ message.name }}" name="name" id="disabledTextInput" class="form-control" placeholder="name">
      </div>
      <div class="form-group">
        <h4>性别</h4>
        <label class="radio-inline">
          <input type="radio" name="gender" id="inlineRadio1" value="0" checked> 男
        </label>
        <label class="radio-inline">
          <input type="radio" name="gender" id="inlineRadio2" value="1"> 女
        </label>
      </div>
      <div class="form-group">
        <label for="disabledTextInput">年龄</label>
        <input type="text" value="{{ message.age }}" name="age" id="disabledTextInput" class="form-control" placeholder="age">
      </div>
      <div class="form-group">
        <h2>hobbies</h2>
        <label class="checkbox-inline">
          <input type="checkbox" name="hobbies" id="inlineRadio1" value="篮球"> 篮球
        </label>
        <label class="checkbox-inline">
          <input type="checkbox" name="hobbies" id="inlineRadio2" value="排球"> 排球
        </label>
        <label class="checkbox-inline">
          <input type="checkbox" name="hobbies" id="inlineRadio3" value="羽毛球"> 羽毛球
        </label>
      </div>
      <button type="submit" class="btn btn-primary">Submit</button>
    </fieldset>
  </form>
</body>
</html>